package com.xuan.bkm.constants;

/**
 * dto代码返回含义
 */
public enum RespCode {

    HAS_NOT_LOGIN(40000,RespConstants.HAS_NOT_LOGIN),
    DO_NOT_HAVE_ACCESS_PRIVS(40001,RespConstants.DO_NOT_HAVE_ACCESS_PRIVS),
    USERNAME_IS_EMPYTY(40002,RespConstants.USERNAME_IS_EMPYTY),
    USERNAME_NOT_FOUND(40003,RespConstants.USERNAME_NOT_FOUND),
    INVAILD_USER(40004, RespConstants.INVAILD_USER),
    FIND_ALL_BOOKS_SUCCESS(80000,RespConstants.FIND_ALL_BOOKS_SUCCESS),
    LOGIN_SUCCEED(80001,RespConstants.LOGIN_SUCCEED),
    FIND_BOOK_SUCCESS(50001,RespConstants.FIND_BOOK_SUCCESS),
    FALLBACK_ERROR(50000,RespConstants.FALLBACK_ERROR)
;
    int code;
    String name;

    RespCode(int code,String name){
        this.code=code;
        this.name=name;
    }

    public int getCode(){
        return code;
    }
    public String getName(){
        return name;
    }
}
